<#if ctrl.render??>
    ${ctrl.render.code}
<#else>
<#if ctrl.getPSControls()??>
<#assign controls = ctrl.getPSControls()/>
    <#list controls as item>
        <#if item.getControlType() == "TOOLBAR">
            <#assign expToolbar = item/>
        <#elseif item.getControlType() == "CALENDAR">
            <#assign expCalendar = item/>
        </#if>
    </#list>
</#if>
<exp-control-layout<#if ctrl.getWidth()?? && ctrl.getWidth() gt 0> :ctrlWidth="${ctrl.getWidth()?c}"</#if><#if ctrl.getHeight()?? && ctrl.getHeight() gt 0> :ctrlHeight="${ctrl.getHeight()?c}"</#if><#if view.getSideBarLayout()?? && view.getSideBarLayout() != "LEFT"> mode="vertical"</#if> :selectView="selection.view">
<#if ctrl.isShowTitleBar()>
    <template slot='title'><#if ctrl.getTitle() == ''>{{ $t('app.gridBar.title') }}<#else>${ctrl.getTitle()}</#if></template>
</#if>
<#if ctrl.isEnableSearch()>
    <template slot='quickSearch'>
        <i-input :search="true" :placeholder="placeholder" @on-change="(e) => searchText = e.target.value" @on-search="onSearch.apply(_self, arguments)"/>
    </template>
</#if>
<#if expToolbar??>
    <template slot='toolbar'>
        ${P.getCtrlCode(expToolbar, 'CONTROL.html').code}
    </template>
</#if>
<#if expCalendar??>
    <template slot='expContent'>
        <#if view.isEnableQuickGroup()>
        <#if view.getPSSysCounterRef?? && view.getPSSysCounterRef()?? && view.getPSSysCounterRef().getPSAppCounter()??>
        <#assign appCounter = view.getPSSysCounterRef().getPSAppCounter() />
        </#if>
        <div class="quick-group-container">
            <app-quick-group :items="quickGroupModel" <#if appCounter??>:counterService="${appCounter.getCodeName()?lower_case}counterservice"</#if> @valuechange="quickGroupValueChange.apply(_self, arguments)"></app-quick-group>
        </div>
        </#if>
        ${P.getCtrlCode(expCalendar, 'CONTROL.html').code}
    </template>
</#if>
    <component 
        v-if="selection.view && !Object.is(selection.view.viewname, '')" 
        :is="selection.view.viewname"
        class="viewcontainer2"
        :viewDefaultUsage="false"
        :viewUsage='7'
        :viewdata="JSON.stringify(selection.context)"
        :viewparam="JSON.stringify(selection.viewparam)">
    </component>
</exp-control-layout>
</#if>